home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmMyTable
- Caption = "The MyTable Program"
- ClientHeight = 4935
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7365
- Height = 5340
- Icon = MYTABLE.FRX:0000
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 4935
- ScaleWidth = 7365
- Top = 1140
- Width = 7485
- Begin TextBox txtData
- Height = 495
- Left = 5760
- TabIndex = 2
- Top = 3720
- Width = 1215
- End
- Begin CommandButton cmdExit
- Caption = "E&xit"
- Height = 495
- Left = 480
- TabIndex = 1
- Top = 4320
- Width = 1215
- End
- Begin Grid Grid1
- Cols = 6
- Height = 3255
- Left = 480
- Rows = 5
- TabIndex = 0
- Top = 120
- Width = 6735
- End
- Begin Image Image2
- Height = 1215
- Left = 2160
- Top = 3480
- Visible = 0 'False
- Width = 1215
- End
- Begin Image Image1
- Height = 1260
- Left = 3480
- Picture = MYTABLE.FRX:0302
- Top = 3480
- Visible = 0 'False
- Width = 1320
- End
- Option Explicit
- Sub cmdExit_Click ()
- End
- End Sub
- Sub Form_Load ()
- Dim Counter
- ' Set the current row to 0.
- Grid1.Row = 0
- ' Write into row #0, col#1
- Grid1.Col = 1
- Grid1.Text = "January"
- ' Write into row #0, col#2
- Grid1.Col = 2
- Grid1.Text = "February"
- ' Write into row #0, col#3
- Grid1.Col = 3
- Grid1.Text = "March"
- ' Write into row #0, col#4
- Grid1.Col = 4
- Grid1.Text = "April"
- ' Write into row #0, col#5
- Grid1.Col = 5
- Grid1.Text = "May"
- ' Write into row #1, col#0
- Grid1.Row = 1
- Grid1.Col = 0
- Grid1.Text = "Electricity"
- ' Write into row #2, col#0
- Grid1.Row = 2
- Grid1.Text = "Water"
- ' Write into row #3, col#0
- Grid1.Row = 3
- Grid1.Text = "Books"
- For Counter = 0 To 5 Step 1
- Grid1.ColWidth(Counter) = 1500
- Next
- ' Fill the (0,0) cell with a picture.
- Grid1.Row = 0
- Grid1.Col = 0
- Grid1.Picture = Image1.Picture
- Grid1.ColWidth(0) = Image1.Width
- Grid1.RowHeight(0) = Image1.Height
- ' Fill the (1,1) cell with a picture of a book
- Image2.Picture = LoadPicture("C:\MVPROG\BMP\FACE1.BMP")
- Grid1.Row = 1
- Grid1.Col = 1
- Grid1.Picture = Image2.Picture
- Grid1.ColWidth(1) = Image2.Width
- Grid1.RowHeight(1) = Image2.Height
- Grid1.ColWidth(1) = Grid1.ColWidth(1) + 1500
- Grid1.Text = "This is FACE1.BMP"
- End Sub
- Sub Grid1_Click ()
- Grid1.Text = txtData.Text
- End Sub
-